﻿<html>
<head>
<title>欢迎光临学习资料查询系统</title>
<link href="css/ponts_common.css" rel="stylesheet" type="text/css"/> 
<link href="css/bj_common.css" rel="stylesheet" type="text/css"/> 
<link href="css/bj_others.css" rel="stylesheet" type="text/css"/> 

<meta http-equiv="Content-Type" content="text/html"; charset="GBK">

</head>
<body onLoad="MM_preloadImages('images/background2.jpg')">
<div class="com_1"><img src="images/42.jpg" alt="1"  border="0" align="middle"/></div>
      <div class="com_2">
       <div class="com_2_1">
   		 <span title="首 页" class="com_2_1_2"><a href="index.php"  class="headline">首 页</a></span>
    	 <span title="资料查询" class="com_2_1_1"><a href="quest.php"  class="headline">资料查询</a></span>
   		 <span title="资料共享" class="com_2_1_1"><a href="Uploaduser.php"  class="headline">资料共享</a></span>
 	     <span title="资料求助" class="com_2_1_1"><a href="seeking.php" class="headline">资料求助</a></span>
  	     <span title="个人中心" class="com_2_1_1"><a href="memcenter.php" class="headline">个人中心</a></span>
        </div>
      </div> 
         
      <div class="com_3">    
              <div class="com_3_1">
              <?php 
              session_start();
						$username=$_SESSION["username"];
 			if ($username<>"")
 			{ 
				echo '<table><tr valign=top><td>&nbsp;</td></tr>';
			 	echo '<tr><td  width=74 class=ti align=right>';
			 	echo '你好!</td><td>'.$username;
			 	echo '</td></tr></table>';
 			}
	 		else
	 		{ 
            	echo '<table><tr  valign=top>';
				echo '<td><p class=ti>用户登录&amp;注册</p>';
            	echo '<form action=chklogin.php method=post name=longform>';   
				echo '<table><tr valign=top align=center><td width=74>';
				echo '用户名</td>';
				echo '<td width=170>';
				echo '<input name=passname type=text maxlength=20 size=20>';
				echo '</td></tr><tr valign=top align=center><td>';
				echo '密码</td>';
     			echo '<td><input name=password type=password maxlength=18 size=20></td></tr><tr valign=middle align=center>';
				echo '<td colspan=2>   <input name=submit type=submit value=登录 size=2>';
				echo ' &nbsp; &nbsp;&nbsp;<a href=Reg.php class=black>注册</a>';		
				echo '</td></tr></table></form></td></tr></table>';
	 		}
				?>
                </div>
            <div class="com_3_2">
              <div class="reg_1">
                          <form method="post" action="chkReg.php">
                         <table width="500">
                        <tr><td colspan="2"><p class="ti">用户注册</p></td></tr>
                        <tr><td align="right" valign="top">用户名</td><td><input name="regpassname" type="text" maxlength="20" size="20"></td></tr>
                        <tr><td align="right" valign="top">密码</td><td><input name="regpassword1" type="password" maxlength="18" size="20">(6~18位) </td></tr>
                        <tr><td align="right" valign="top">请再次输入密码</td><td><input name="regpassword2" type="password" maxlength="18" size="20"></td></tr>
                        <tr>
                        <td></td><td colspan="2" align="left">   <input name="regsubmit" type="submit" value="提交" size="2"></td></tr>
                        </table>
                        </form>
                </div>  
            </div>
      </div>
      <div class="com_4">
        @copyright
      </div>
</body>
</html>
